package name.hankc.spring;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import name.hankc.spring.bean.Person;
import name.hankc.spring.dao.DemoDao;

public class QuickstartByTypeApplication {
  public static void main(String[] args) throws Exception {
    BeanFactory factory = new ClassPathXmlApplicationContext("basic_dl/quickstart-bytype.xml");
    Person person = factory.getBean(Person.class);
    System.out.println(person);

    DemoDao demoDao = factory.getBean(DemoDao.class);
    System.out.println(demoDao.findAll());
  }
}